//
//  EOSAccountResult.m
//  Bees
//
//  Created by NowYouCanSee on 2018/12/26.
//  Copyright © 2018 xiaohan. All rights reserved.
//

#import "EOSAccountResult.h"

@implementation EOSAccountResult

@end


@implementation EOSAccountLimit

@end

@implementation EOSAccountTotalResources

@end

@implementation EOSAccountDelegatedBandwidth

@end

@implementation EOSAccountRefundRequest

@end

@implementation EOSAccountVoterInfo

@end

@implementation EOSPermissionsInfo
+ (nullable NSDictionary<NSString *, id> *)modelContainerPropertyGenericClass{
    return @{@"required_auth":EOSRequiredAuth.class};
}
@end
@implementation EOSRequiredAuth
+ (nullable NSDictionary<NSString *, id> *)modelContainerPropertyGenericClass{
    return @{@"keys":EOSKey.class};
}
@end
@implementation EOSKey

@end

@implementation EOSAccountInfo

+ (nullable NSDictionary<NSString *, id> *)modelContainerPropertyGenericClass{
    return @{@"net_limit":EOSAccountLimit.class,
             @"cpu_limit":EOSAccountLimit.class,
             @"total_resources":EOSAccountTotalResources.class,
             @"self_delegated_bandwidth":EOSAccountDelegatedBandwidth.class,
             @"refund_request":EOSAccountRefundRequest.class,
             @"voter_info":EOSAccountVoterInfo.class,
             @"permissions":EOSPermissionsInfo.class,
             };
}

- (NSString*)core_liquid_balance{
    if (IsNilOrNull(_core_liquid_balance)) {
        return @"0";
    }
    return _core_liquid_balance;
}
@end
